package com.lzw.bluetoothpractice.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import androidx.fragment.app.Fragment;

import com.lzw.bluetoothpractice.Activitys.SearchDeviceActivity;
import com.lzw.bluetoothpractice.R;

import cn.bmob.v3.http.I;

public class EquipmentFragment extends Fragment {
    Button floatingActionButton;
    View view;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.equipmentfragment, null);

        floatingActionButton=view.findViewById(R.id.floatingActionButton);
        floatingActionButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(getActivity(), SearchDeviceActivity.class);
                startActivity(intent);
            }
        });
        return view;
    }
}
